package com.mot.st.network.api



import com.gtxc.kotlinmvvm.network.request.*
import retrofit2.http.*
import java.util.*
import kotlin.collections.ArrayList


/**
 * Created by houzhanlei
 * 2020/7/22
 * 为自己代码负责
 */
interface ApiService {
    /*
    * 获取验证码
    * */
    @POST("verifycode/smsCode")
    suspend fun postcode(@Body dat:RequestTestBean): BaseResult<String>
    /*
    * 注册
    * */
    @POST("user/register")
    suspend fun Register(@Body dat: RegisterBean): BaseResult<String>
    /*
    * 登录
    * */
    @POST("login/account")
    suspend fun Login(@Body dat: LoinBean): LogBaseBean<ResultObjBean>
    /*
    * 忘记密码
    * */
    @POST("user/forget")
    suspend fun postforget(@Body dat: ForgetBean): BaseResult<String>
    /*
    * 首页数据
    * */
    @GET("homepage/home")
    suspend fun gethomepage(): LogBaseBean<MediaListBean>
    /*
    * 团队参数
    * */
    @GET("homepage/team/{id}")
    suspend fun getgroup(@Path("id") id:String ,@Body dat: ForgetBean): BaseResult<String>

    /*
    * app更新
    * */
    @POST("/version/verifyNewVersion")
    suspend fun verifyNewVersion(@Body dat: verifyNewVersionBean): LogBaseBean<VersionUpdateVo>
    /*
    * 通过版本code查询版本信息
    * */
    @POST("/version/getVersion")
    suspend fun getVersion(@Body dat: verifyNewVersionBean): LogBaseBean<VersionVo>
    /*
    * 闪电图标每日任务接口
    * */
    @POST("/task/basicsTaskConmit")
    suspend fun basicsTaskConmit(): LogBaseBean<Objects>
    /*
    * 首个节点查询
    * */
    @GET("/homepage/firstNode")
    suspend fun getfirstNode(): LogBaseBean<List<Int>>
    /*
    * 新闻资讯
    * */

    @GET("/information/title")
    suspend fun gettitle(): LogBaseBean<List<TitlBeanItem>>

}

